package com.bcn.login_mybatisplus_demo.saraca.mapper;


import com.bcn.login_mybatisplus_demo.saraca.pojo.AppUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * app用户Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
@Mapper
public interface AppUserMapper 
{
    /**
     * 查询app用户
     * 
     * @param id app用户主键
     * @return app用户
     */
    public AppUser selectAppUserById(Long id);

    /**
     * 查询app用户列表
     * 
     * @param appUser app用户
     * @return app用户集合
     */
    public List<AppUser> selectAppUserList(AppUser appUser);

    /**
     * 新增app用户
     * 
     * @param appUser app用户
     * @return 结果
     */
    public int insertAppUser(AppUser appUser);

    /**
     * 修改app用户
     * 
     * @param appUser app用户
     * @return 结果
     */
    public int updateAppUser(AppUser appUser);

    /**
     * 删除app用户
     * 
     * @param id app用户主键
     * @return 结果
     */
    public int deleteAppUserById(Long id);

    /**
     * 批量删除app用户
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppUserByIds(Long[] ids);

    AppUser getById(String userId);

    AppUser selectAppUser(AppUser appUser);

}
